package com.syq.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 住院表
 * </p>
 *
 * @author syq
 * @since 2022-07-21
 */
@TableName("register")
public class Register implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 住院人id
     */
    @TableId(value = "register_id", type = IdType.AUTO)
    private Integer registerId;

    /**
     * 住院人姓名
     */
    private String registerName;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 性别
     */
    private String sex;

    /**
     * 科室id
     */
    private Integer departmentId;

    /**
     * 医生id
     */
    private Integer doctorId;

    /**
     * 诊断
     */
    private String diagnose;

    /**
     * 地址
     */
    private String address;

    /**
     * 地址
     */
    private String phone;

    /**
     * 身份证号
     */
    private String carid;

    /**
     * 住院开始时间
     */
    private LocalDateTime startTime;

    /**
     * 床位编号
     */
    private Integer bedNum;

    /**
     * 操作者
     */
    private String operator;

    /**
     * 费用
     */
    private Double money;

    /**
     * 状态
     */
    private Integer state;

    /**
     * 住院结束时间-为null代表没出院
     */
    private LocalDateTime endDate;

    /**
     * 实际付款
     */
    private Double price;

    /**
     * 折扣
     */
    private String discount;

    /**
     * 转院时间-为null代表没转院
     */
    private LocalDateTime transferTime;

    public Integer getRegisterId() {
        return registerId;
    }

    public void setRegisterId(Integer registerId) {
        this.registerId = registerId;
    }
    public String getRegisterName() {
        return registerName;
    }

    public void setRegisterName(String registerName) {
        this.registerName = registerName;
    }
    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }
    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }
    public String getDiagnose() {
        return diagnose;
    }

    public void setDiagnose(String diagnose) {
        this.diagnose = diagnose;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getCarid() {
        return carid;
    }

    public void setCarid(String carid) {
        this.carid = carid;
    }
    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }
    public Integer getBedNum() {
        return bedNum;
    }

    public void setBedNum(Integer bedNum) {
        this.bedNum = bedNum;
    }
    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }
    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public LocalDateTime getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDateTime endDate) {
        this.endDate = endDate;
    }
    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }
    public LocalDateTime getTransferTime() {
        return transferTime;
    }

    public void setTransferTime(LocalDateTime transferTime) {
        this.transferTime = transferTime;
    }

    @Override
    public String toString() {
        return "Register{" +
            "registerId=" + registerId +
            ", registerName=" + registerName +
            ", age=" + age +
            ", sex=" + sex +
            ", departmentId=" + departmentId +
            ", doctorId=" + doctorId +
            ", diagnose=" + diagnose +
            ", address=" + address +
            ", phone=" + phone +
            ", carid=" + carid +
            ", startTime=" + startTime +
            ", bedNum=" + bedNum +
            ", operator=" + operator +
            ", money=" + money +
            ", state=" + state +
            ", endDate=" + endDate +
            ", price=" + price +
            ", discount=" + discount +
            ", transferTime=" + transferTime +
        "}";
    }
}
